namespace KinonekoSoftware.CodariaDB.Documents.Timelines
{
    public sealed class Event : RootObject
    {
        public uint   Ela         { get; set; }
        public string Year        { get; set; }
        public uint   EventNumber { get; set; }
        public string Name        { get; set; }
        public string Intro       { get; set; }
        public string Color       { get; set; }
    }

    public sealed class EventPresenter : ObservableObject
    {
        public  string Ela { get; }
        private string _name;
        private string _intro;

        /// <summary>
        /// 获取或设置 <see cref="Intro"/> 属性。
        /// </summary>
        public string Intro
        {
            get => _intro;
            set => SetValue(ref _intro, value);
        }

        /// <summary>
        /// 获取或设置 <see cref="Name"/> 属性。
        /// </summary>
        public string Name
        {
            get => _name;
            set => SetValue(ref _name, value);
        }
    }
}